package gf.framework.common.test;

import com.gf.framework.common.utils.hashhash.ConcurrentHashHashMap;

import java.util.concurrent.ConcurrentHashMap;

/**
 * @author gaofei
 * @date 2022/6/12 16:28
 */
public class HashHashtest {
    public static void main(String[] args) {
        long count = 1000 * 1000 * 100;

        Class<?> classzz = HashHashtest.class;

        long startTime = System.currentTimeMillis();
        for (int i = 0; i < count; i++) {
            classzz.hashCode();
        }
        System.out.println(System.currentTimeMillis() - startTime);
        startTime = System.currentTimeMillis();
        for (int i = 0; i < count; i++) {
            classzz.getName().hashCode();
        }
        System.out.println(System.currentTimeMillis() - startTime);
    }
}
